package cn.itsource.ymcc.openfeign;

import cn.itsource.ymcc.result.JsonResult;
import cn.itsource.ymcc.openfeign.fallbackfactory.CourseOpenFeignFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-course",fallbackFactory = CourseOpenFeignFallbackFactory.class )
public interface CourseOpenFeign {
    @GetMapping("/courseUserLearn/userLearn/{courseId}/{userId}")
    public JsonResult userLearn(@PathVariable("courseId")Long courseId, @PathVariable("userId")Long userId);
}
